#include <iostream>
#include <functional>

void print(const char *str, int num)
{
    std::cout << str << " " << num << std::endl;
}

int main()
{
    // print("hahaha",20);
    auto func = std::bind(print, "wxihuanwxt", std::placeholders::_1); // 预留一个位置  可调用对象
    func(100);
    print("hahaha", 20);
    return 0;
}
